﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BKInfo
{

    public class BKInfoPropertyMapping : PropertyMapping<BKInfoResource, Bk_Info>
    {
        public BKInfoPropertyMapping() : base(
          new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
          {
              [nameof(BKInfoResource.BookId)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.BookId),Revert=false }
              },
              [nameof(BKInfoResource.BookName)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.BookName),Revert=false }
              },
              [nameof(BKInfoResource.BKTypeId)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.BKTypeId),Revert=false }
              },
              [nameof(BKInfoResource.Author)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.Author),Revert=false }
              },
              [nameof(BKInfoResource.CollectCount)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.CollectCount),Revert=false }
              },
              [nameof(BKInfoResource.EnabledMark)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.EnabledMark),Revert=false }
              },

              [nameof(BKInfoResource.OpenCount)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.OpenCount),Revert=false }
              },

              [nameof(BKInfoResource.Pulisher)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.Pulisher),Revert=false }
              },
              [nameof(BKInfoResource.RecommendCount)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Bk_Info.RecommendCount),Revert=false }
              }
          })
        {
        }
    }

}
